package com.pi.push.app.dto;

import java.io.Serializable;
import java.util.Map;

import com.pi.config.model.PartnerPushConfig;
import com.pi.push.enumerate.AccessDevice;

public class PushInfo implements Serializable{
  private static final long serialVersionUID = 3083721340328910006L;
  //推送信道
  private String pushChannel;
  //推送的消息模板编号(或者编号)
  private String pushTemplate;
  //推送的消息
  private String pushMsg;
  //目标用户的手机类型
  private AccessDevice deviceType;
  //推送人别名
  private String pushSourceName;
  //推送人账号(或者唯一标志号)
  private String pushSourceId;
  //目标推送人账号(或者唯一标志号)
  private String targetReceiverId;
  //目标推送人别名
  private String targetReceiverName;
  //消息提示(自定义标签,可不填)
  private String msgTag;
  //用户来源
  private Long partnerId ;
  //OEM厂商推送信息
  public PartnerPushConfig pushConfig;
  //用户当前的app版本
  private String appVersion;
  //推送消息生成时间
  private final Long msgTime= System.currentTimeMillis();
  private Integer regionId=1;
  //模板变量参数
  private Map<String,String> varMap;
  public String getPushChannel() {
    return pushChannel;
  }
  public void setPushChannel(String pushChannel) {
    this.pushChannel = pushChannel;
  }
  public String getPushTemplate() {
    return pushTemplate;
  }
  public void setPushTemplate(String pushTemplate) {
    this.pushTemplate = pushTemplate;
  }
  public String getPushMsg() {
    return pushMsg;
  }
  public void setPushMsg(String pushMsg) {
    this.pushMsg = pushMsg;
  }
  public AccessDevice getDeviceType() {
    return deviceType;
  }
  public void setDeviceType(AccessDevice deviceType) {
    this.deviceType = deviceType;
  }
  public String getPushSourceName() {
    return pushSourceName;
  }
  public void setPushSourceName(String pushSourceName) {
    this.pushSourceName = pushSourceName;
  }
  public String getPushSourceId() {
    return pushSourceId;
  }
  public void setPushSourceId(String pushSourceId) {
    this.pushSourceId = pushSourceId;
  }
  public String getTargetReceiverId() {
    return targetReceiverId;
  }
  public void setTargetReceiverId(String targetReceiverId) {
    this.targetReceiverId = targetReceiverId;
  }
  public String getTargetReceiverName() {
    return targetReceiverName;
  }
  public void setTargetReceiverName(String targetReceiverName) {
    this.targetReceiverName = targetReceiverName;
  }
  public String getMsgTag() {
    return msgTag;
  }
  public void setMsgTag(String msgTag) {
    this.msgTag = msgTag;
  }
  public Long getPartnerId() {
    return partnerId;
  }
  public void setPartnerId(Long partnerId) {
    this.partnerId = partnerId;
  }
  public PartnerPushConfig getPushConfig() {
    return pushConfig;
  }
  public void setPushConfig(PartnerPushConfig pushConfig) {
    this.pushConfig = pushConfig;
  }
  public String getAppVersion() {
    return appVersion;
  }
  public void setAppVersion(String appVersion) {
    this.appVersion = appVersion;
  }
  public Integer getRegionId() {
    return regionId;
  }
  public void setRegionId(Integer regionId) {
    this.regionId = regionId;
  }
  public Map<String, String> getVarMap() {
    return varMap;
  }
  public void setVarMap(Map<String, String> varMap) {
    this.varMap = varMap;
  }
  public static long getSerialversionuid() {
    return serialVersionUID;
  }
  public Long getMsgTime() {
    return msgTime;
  }
  @Override
  public String toString() {
    return "PushInfo [pushChannel=" + pushChannel + ", pushTemplate=" + pushTemplate + ", pushMsg=" + pushMsg
        + ", deviceType=" + deviceType + ", pushSourceName=" + pushSourceName + ", pushSourceId=" + pushSourceId
        + ", targetReceiverId=" + targetReceiverId + ", targetReceiverName=" + targetReceiverName + ", msgTag=" + msgTag
        + ", partnerId=" + partnerId + ", pushConfig=" + pushConfig + ", appVersion=" + appVersion + ", msgTime="
        + msgTime + ", regionId=" + regionId + ", varMap=" + varMap + "]";
  }
}
